package si.yun.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import java.io.Serializable;
import java.util.Date;
/** 
 * @Author Cxc 
 * @Author QQ:1304793236 
 * @Date 2021-08-01 18:35:19 
 */
@Entity
@Table ( name ="sy_closure" )
public class SyClosure  implements Serializable {

	private static final long serialVersionUID =  6788671134635642179L;

	/**
	 * 自增主键
	 */
	@Id
   	@Column(name = "id" )
	private int id;

	/**
	 * 用户表id
	 */
   	@Column(name = "user_id" )
	private int userId;

	/**
	 * 类型（2前台，3后台）
	 */
   	@Column(name = "type" )
	private int type;

	/**
	 * 封停原因
	 */
   	@Column(name = "reason" )
	private String reason;

	/**
	 * 封停时间
	 */
   	@Column(name = "start_date" )
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date startDate;

	/**
	 * 结束时间
	 */
   	@Column(name = "end_date" )
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date endDate;

	/**
	 * 封停天数
	 */
   	@Column(name = "days" )
	private int days;

	/**
	 * 备注
	 */
   	@Column(name = "remarks" )
	private String remarks;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public int getDays() {
        return days;
    }

    public void setDays(int days) {
        this.days = days;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}
